package appapi.entity.AppAmg;

import appapi.entity.app.OnsitedetailEntity;
import appapi.entity.app.SelfcheckDetailEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;
import java.util.List;

@ApiModel(value="自检明细")
@Data
public class SelfcheckDetailImgDto {
    @ApiModelProperty(value="")
    private Long selfRecId;

    @ApiModelProperty(value="")
    private Long selfId;

    /**
     * 检测项目
     */
    @ApiModelProperty(value="检测项目")
    private String selfItem;

    /**
     * 0正常 1异常
     */
    @ApiModelProperty(value="0正常 1异常")
    private Integer selfResult;

    @ApiModelProperty(value="")
    private String selfDesc;

    @ApiModelProperty(value="")
    private Integer auditState;

    @ApiModelProperty(value="")
    private String auditNote;

    @ApiModelProperty(value="")
    private Date createTime;

    @ApiModelProperty(value="")
    private Date updateTime;

    @ApiModelProperty(value = "转换的图片",required = true)
    private List<String> img;

    public SelfcheckDetailEntity vo2Entity() {
        SelfcheckDetailEntity entity = new SelfcheckDetailEntity();
        BeanUtils.copyProperties(this, entity);
        return entity;
    }
}
